let path = require('path')
let resolve = str => path.resolve(__dirname, 'src', str)


module.exports = {
    lintOnSave: false,
    chainWebpack: config => {
        config.resolve.alias
            .set('~p', resolve('pages'))
            .set('~c', resolve('components'))
            .set('~v', resolve('views'))
        
        config
            .plugin('html')
            .tag(args => {
                args[0].title = process.env.VUE_APP_TITLE
                return args
            })
        return config
    }
}